package com.husd.framework.mq;

import com.husd.framework.BaseLoadTest;
import org.junit.Test;

import java.util.List;

public class MqRequestCode extends BaseLoadTest {

    @Test
    public void test() {

        List<String> list = loadResourceList("mq_request_code.lst");
        for (int i = 0; i < list.size() - 1; i = i + 2) {

            String comment = list.get(i).trim();
            String code = list.get(i + 1).trim();

            comment = comment.substring(2);
            int inx = code.lastIndexOf("=");
            code = code.substring(inx + 1, code.length() - 1);
            System.out.println(String.format("codeMsg[%s] = \"%s\"", code.trim(), comment.trim()));
        }
    }
}
